package com.example.tg.Service.Impl;

import com.example.tg.Dao.PurchaselistMapper;
import com.example.tg.Service.PurchaselistService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.ListPl;
import pojo.PurchaseList;
import pojo.Xgth;

import java.util.List;

@Service
public class PurchaselistServiceImpl implements PurchaselistService {
    @Autowired
    private PurchaselistMapper purchaselistMapper;

    @Override
    public int addPl(List<PurchaseList> list) {
        return purchaselistMapper.addPl(list);
    }


    @Override
    public int addPl2(List<PurchaseList> list) {
        return purchaselistMapper.addPl2(list);
    }

    @Override
    public List listPl(String pid) {

        return purchaselistMapper.listPl(pid);
    }

    @Override
    public int delePl(String id) {
        return purchaselistMapper.delePl(id);
    }

    @Override
    public int updaPl(List<Xgth> list) {
        return purchaselistMapper.updaPl(list);
    }


}
